﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using EPIClientRssWP7.UserManagementService;

namespace ViewModel
{
    public sealed class ClientInformation : ViewModelBase
    {
        private static volatile ClientInformation instance;
        private static Object syncRoot = new Object();
        public static ClientInformation Instance
        {
            get
            {
                if (instance == null)
                    lock (syncRoot)
                        if (instance == null)
                            instance = new ClientInformation();
                return instance;
            }

        }

        private DataUser currentUser;
        public DataUser CurrentUser
        {
            get
			{
				return currentUser;
			}
            set
            { 
                if (currentUser == null || value == null)
                    currentUser = value;
            }
        }


        public bool Authenticate
        { get; set; }

        private ClientInformation()
        {
            currentUser = null;
            Authenticate = false;
        }

        


    }
}
